package com.xian.im.modules.im.controller.model.login;

import com.xian.im.common.validator.group.LoginGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * @program: xian-code
 * @description:
 * @author: liru.xian
 * @create: 2021-01-20 00:31
 **/
@Data
@ApiModel(value = "机构登录请求", description = "机构登录请求")
public class OrgLoginReq implements Serializable {

    @ApiModelProperty(value = "accessKey")
    @NotBlank(groups = LoginGroup.class, message = "请填写 accessKey")
    private String accessKey;
    @ApiModelProperty(value = "secret")
    @NotBlank(groups = LoginGroup.class, message = "请填写 secret")
    private  String secret;
}
